﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using NHOMA2_DVLH.App_Lib.DAL.DuLichLuHanhTableAdapters;
using NHOMA2_DVLH.App_Lib.DAL;

namespace NHOMA2_DVLH.App_Lib.BLL
{
    [System.ComponentModel.DataObject] 
    public class TramBLL
    {
        private TRAMTableAdapter tramAdapter = null;

        public TRAMTableAdapter TramAdapter
        {
            get
            {
                if (tramAdapter == null)
                {
                    tramAdapter = new TRAMTableAdapter();
                }
                return tramAdapter;
            }
            set { tramAdapter = value; }
        }

        /// <summary>
        /// ndkhoa 13/12
        /// </summary>
        /// <returns></returns>
        [System.ComponentModel.DataObjectMethodAttribute
            (System.ComponentModel.DataObjectMethodType.Select, true)]
        public DuLichLuHanh.TRAMDataTable GetTram()
        {
            return TramAdapter.GetTram();
        }
    }
}
